<template>
            <div :class="swipername" class="swiper-container">
                <div class="swiper-wrapper">
                    <slot></slot>
                </div>
            </div>
</template>

<script>
    import Swiper from 'swiper/bundle'
    import 'swiper/swiper-bundle.css'
    export default {
            props:{
                swipername:{
                        type:String,
                        default:'yan_yuan',
                },
            },
            mounted() {
                var swiper = new Swiper('.'+this.swipername, {
                    slidesPerView: 4,
                    spaceBetween: 10,
                    pagination: {
                        el: '.swiper-pagination',
                        clickable: true,
                    },
                });
            },
    }
</script>

<style scoped>
        .swiper-slide>img{display: block;width: 100%;}
        .swiper-slide>div{text-align: center;}
        .yanyuan_name{margin-top: 11px;font-size: 10px;line-height: 10px;}
        .yanyuan_role{margin-top: 5px;font-size: 10px;line-height: 10px;color: #aeb0b4;}
</style>